<?php
require dirname(__DIR__) . '/fuente/autocarga.php';

spl_autoload_register(
    function($class) {
        static $classes = null;
        if ($classes === null) {
            $classes = array(
            	'torneoprueba' => '/unit/TorneoPrueba.php'
            );
        }

        $cn = strtolower($class);
        if (isset($classes[$cn])) {
            require __DIR__ . $classes[$cn];
        }
    }
);
